<script setup>
import { useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
import { logout} from '@/request'

const router = useRouter()

const logoutSystem=()=>{
    logout(()=>{
        router.push("/")
    })
}
</script>

<template>
<div>这是主页面</div>
<el-button @click="logoutSystem">退出系统</el-button>
</template>

<style scoped>

</style>
